package com.ruoyi.system.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.convert.ExcelDictConvert;
import lombok.Data;

import java.util.Date;


/**
 * 意见反馈视图对象 lc_opinion
 *
 * @author ruoyi
 * @date 2023-08-18
 */
@Data
@ExcelIgnoreUnannotated
public class LcOpinionVo {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ExcelProperty(value = "id")
    private Long opinionId;

    /**
     * 流程id
     */
    @ExcelProperty(value = "流程id")
    private Long processId;

    /**
     * 流程编号
     */
    @ExcelProperty(value = "流程编号")
    private String processCode;

    /**
     * 流程名称
     */
    @ExcelProperty(value = "流程名称")
    private String processName;

    /**
     * 流程版本
     */
    @ExcelProperty(value = "流程版本")
    private String processVersion;

    /**
     * 所属业务分类id
     */
    @ExcelProperty(value = "所属业务分类id")
    private Long businessId;

    /**
     * 所属业务分类
     */
    @ExcelProperty(value = "所属业务分类")
    private String businessName;

    /**
     * 反馈内容
     */
    @ExcelProperty(value = "反馈内容")
    private String context;

    /**
     * 反馈部门id
     */
    @ExcelProperty(value = "反馈部门id")
    private Long deptId;

    /**
     * 反馈部门
     */
    @ExcelProperty(value = "反馈部门")
    private String deptName;

    /**
     * 手机号
     */
    @ExcelProperty(value = "手机号")
    private String phone;

    /**
     * 反馈照片
     */
    @ExcelProperty(value = "反馈照片")
    private String imageUrl;

    /**
     * 状态（0正常 1停用）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=正常,1=停用")
    private String status;

    /**
     * 回复内容
     */
    @ExcelProperty(value = "回复内容")
    private String replyContent;

    /**
     * 回复人id
     */
    @ExcelProperty(value = "回复人id")
    private Long replyUserId;

    /**
     * 回复人
     */
    @ExcelProperty(value = "回复人")
    private String replyUserName;

    /**
     * 节点编号
     */
    @ExcelProperty(value = "节点编号")
    private String nodeKey;

    /**
     * 发起的第一条的评论(0:是 1:不是)
     */
    @ExcelProperty(value = "发起的第一条的评论(0:是 1:不是)")
    private Integer isFirst;

    private Long userId;

    private String userName;

    private Long replyOpinionId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private String nodeName;

}
